package test.event;

import context.ApplicationListener;

import java.util.Date;

/**
 * @Description: TODO
 * @Author: Take-off
 * @Date: 2023/3/7 10:33 AM
 * @Param
 * @return
 * @Version: 1.0
 **/
public class CustomEventListener implements ApplicationListener<CustomEvent> {

    @Override
    public void onApplicationEvent(CustomEvent event) {
        System.out.println("收到：" + event.getSource() + "消息;时间：" + new Date());
        System.out.println("消息：" + event.getId() + ":" + event.getMessage());
    }
}
